<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class PersonTimes extends Model
{
    //
    protected $table = "person_times";
    protected $fillable = ['leave_time', 'five_saw_time', 'person_id'];
    public $timestamps = false;

    /**
     * 获取时间所属人员
     */
    public function person()
    {
        return $this->belongsTo('App\Person', 'person_id', 'id');
    }
}
